package com.haina.vote.service.impl;

import com.github.pagehelper.PageHelper;
import com.haina.vote.entity.IpInfo;
import com.haina.vote.mapper.SysLogMapper;
import com.haina.vote.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class SysLogService implements ISysLogService {
    @Autowired
    private SysLogMapper sysLogMapper;

    @Override
    public List<IpInfo> findAllIpInfo(Integer page, Integer pageSize) {
        PageHelper.startPage(page,pageSize);
        return sysLogMapper.findAllIpInfo();
    }
}
